import pytest

from Pages.page_now_order import PageNowPay

from script import log


class TestNowPay:

    @pytest.mark.flaky(reruns=2, reruns_delay=1)
    def test_now_pay(self,get_driver,login,search):
        order = PageNowPay(get_driver)
        order.pay_now_goods("123456")
        result = order.pay_now_sucuse()
        log.info(result)
        assert "订单成功" in result
